﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoBrick
{/// <summary>
/// 砖块类
/// </summary>
    class Brick
    {
        public Rectangle Rectangle { get; set; }
        public Brick (Rectangle rec)
        {
            Rectangle = rec;
        }
        /// <summary>
        /// 绘图
        /// </summary>
        /// <param name="g"></param>

    public void Draw(Graphics g)
        {
            g.FillRectangle(new SolidBrush(Color.Yellow), Rectangle);
        }
    }
}
